package org.extreme.script.core.parser;

import org.extreme.script.CalculateContext;

public class ClosedExp extends Atom {
	private OrExp exp;
	
	ClosedExp(OrExp exp) {
		this.exp = exp;
	}
	
	public Object eval(CalculateContext calculator) throws UtilEvalError {
		return exp.eval(calculator);
	}
	
	public void traversal4Tiny(TinyHunter hunter) {
		exp.traversal4Tiny(hunter);
	}
	
	public String exString(CalculateContext calculator) {
		return "(" + exp.exString(calculator) + ")";
	}
	
	public String toString() {
		return "(" + exp + ")";
	}

	public String getExpression(int rowIndex, int rowChanged, int columnIndex, int colChanged, boolean isParameter) {
		return "(" + exp.getExpression(rowIndex, rowChanged, columnIndex, colChanged, isParameter) + ")";
	}

	public String[] parserParameter() {
		return exp.parserParameter();
	}
}
